import java.util.Locale;
import java.util.ResourceBundle;

/**
 * author:wzq
 * date:16-7-12
 * project:i18n
 * description: TODO
 */
public class ResBundle {
    public static void main(String[] args) {
        // 选择一个 locale
//          Locale loc = Locale.CHINA;
//        Locale loc = new Locale("en");
//         Locale loc = new Locale("cn");
         Locale loc = new Locale("fr");
        ResourceBundle currentResources = ResourceBundle.getBundle("resfoo", loc);
        System.out.println(currentResources.getString("name"));
    }
}
